{{#if singleSubmission}}
  {{#each submissions}}
    {{#t "submitted"}}<label>Submitted:</label> {{submittedAt}}{{/t}}
    {{#if late}}
      <span class="submission-late-pill"></span>
    {{else}}
      {{#if missing}}
        <span class="submission-missing-pill"></span>
      {{/if}}
    {{/if}}
  {{/each}}
{{else}}
  <label for="submission_to_view" class="ic-Label">
    {{#t "submission_to_view"}}Submission to view:{{/t}}
  </label>
  <select id="submission_to_view" class="ic-Input">
  {{#each submissions}}
    <option value="{{value}}"
            {{#if late}}class=late{{/if}}
            {{#if selected}}selected{{/if}}>
      {{submittedAt}}
      {{#if late}}
        {{#t}}LATE{{/t}}
      {{else}}
        {{#if missing}}
          {{#t}}MISSING{{/t}}
        {{/if}}
      {{/if}}
      {{#if grade}}
        {{#t "grade"}}(grade: {{grade}}){{/t}}
      {{/if}}
    </option>
  {{/each}}
  </select>
{{/if}}

{{#if linkToQuizHistory}}
  <a href="{{quizHistoryHref}}" class=see-all-attempts>
    {{#t "see_all_quiz_attempts"}}See all quiz attempts{{/t}}
  </a>
{{/if}}
